﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SearchChangeRecord.ascx.vb" Inherits="WebForm_ManageVolunteer_SearchChangeRecord" %>
<%@ Register src="~/WebForm/CommonControl/VolunteerQueryControl.ascx" tagname="VolunteerQueryControl" tagprefix="uc1" %>
<%@ Register Src="~/WebForm/CommonControl/CalendarTextBox.ascx" TagName="CalendarTextBox" TagPrefix="My" %>
<uc1:VolunteerQueryControl ID="VolunteerQueryControl1" runat="server" LoadOnStartUp="true" />
<table>
    <tr>
        <td align="right">
            <asp:Label ID="lblChangeType" runat="server" Text="<%$ Resources:ChangeType %>"></asp:Label>
        </td>
        <td align="left">
            <asp:DropDownList ID="ddlChangeType" runat="server"></asp:DropDownList>
        </td>   
     </tr>
     <tr>
        <td align="right">
            <asp:Label ID="lblCreateDate" runat="server" Text="<%$ Resources:LabelCreateDate %>"></asp:Label>
        </td>
        <td align="left">
            <My:CalendarTextBox ID="txtCreateDateStart" runat="server" />~
            <My:CalendarTextBox ID="txtCreateDateEnd" runat="server" />
            <asp:Button ID="btnQuery" runat="server" Text="<%$ Resources:Query %>" />
        </td>
     </tr>
     </table>
    <table>
     <tr>
        <td colspan="2">
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td>
                         <My:MyGridView ID="gv" runat="server" SkinID="pager"
                              AllowPaging="True" AllowSorting="True" AllowHoverEffect="False" AllowHoverSelect="False"
                              EmptyDataText="<%$ Resources:NoData %>" MySortExpression="cr.CreateDate" MySortDirection="Ascending">
                                <Columns>
                                      <asp:BoundField DataField="VolunteerName"  HeaderText="<%$ Resources:VolunteerName %>" />
                                       <My:VolunteerIDBoundField DataField="ChangeID" HeaderText="<%$ Resources:ChangeID %>" />
                                    <asp:BoundField DataField="ChangeTypeText"  HeaderText="<%$ Resources:ChangeTypeText %>" />
                                    <asp:BoundField DataField="ChangeReason"  HeaderText="<%$ Resources:ChangeReason %>" />
                                    <asp:BoundField DataField="CreateDate"  HeaderText="<%$ Resources:CreateDate %>" SortExpression="cr.CreateDate" />
                                        <asp:TemplateField HeaderText="<%$ Resources:CreateBy %>">
                                        <ItemTemplate>
                                          <%#Eval("OrganizationName")%> <%#Eval("UserName") %>
                                        </ItemTemplate>
                                    </asp:TemplateField>        
                                </Columns>
                         </My:MyGridView>
                     </td>
                 </tr>
             </table>
        </td>
    </tr>
</table>